package com.itheima.spring.model;

import lombok.Data;

@Data
public class User {

    private String name;
    private Integer age;

    public User() {
    }

    public User(String name) {
        this.name = name;
    }

    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    public void init(){
        System.out.println("Bean的初始化...");
    }

    public void destory(){
        System.out.println("Bean被销毁...");
    }

}
